<?php

namespace app\mobile\controller;

class About extends base
{
    public function _initialize()
    {
        parent::_initialize();
        $this->obj = model('About');
    }

    public function index()
    {

        $this->obj->where('cid',$this->request->param('navid'));
        $data = $this->obj->find();
        $this->assign([
            'data' => $data,
        ]);
        return $this->fetch();
    }


//    public function index()
//    {
//
//        $list = $this->obj->select();
//        $data = $this->obj->find($this->request->param('id'));
//        $next = $this->obj->getnext($data->id);
//        $this->assign([
//            'list' => $list,
//            'data' => $data,
//            'next'=>$next,
//        ]);
//        return $this->fetch();
//    }

}
